package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 审核人不一定是具体的人员，可能是角色、用户等
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class BdpWfAuditPerson extends Model<BdpWfAuditPerson> {

    private static final long serialVersionUID=1L;

    /**
     * k 
     */
    @TableId("AUDIT_PERSON_ID")
    private String auditPersonId;

    /**
     * 流程节点标识
     */
    @TableField("NODE_ID")
    private String nodeId;

    /**
     * 条件成立时才使用审核人，缺省为成立
     */
    @TableField("AUDITOR_CONDITION")
    private String auditorCondition;

    /**
     * A:用户;B:角色
     */
    @TableField("AUDITOR_KIND")
    private Integer auditorKind;

    /**
     * 角色/用户的ID值
     */
    @TableField("AUDITOR_VALUE")
    private String auditorValue;

    /**
     * 公司
     */
    @TableField("INNER_COMPANY_ID")
    private String innerCompanyId;

    /**
     * 创建人
     */
    @TableField("INNER_CREATOR_ID")
    private String innerCreatorId;

    /**
     * 创建时间
     */
    @TableField("INNER_CREATE_TIME")
    private LocalDateTime innerCreateTime;

    /**
     * 删除标志
     */
    @TableField("INNER_DELETE_FLAG")
    private Integer innerDeleteFlag;


    public String getAuditPersonId() {
        return auditPersonId;
    }

    public BdpWfAuditPerson setAuditPersonId(String auditPersonId) {
        this.auditPersonId = auditPersonId;
        return this;
    }

    public String getNodeId() {
        return nodeId;
    }

    public BdpWfAuditPerson setNodeId(String nodeId) {
        this.nodeId = nodeId;
        return this;
    }

    public String getAuditorCondition() {
        return auditorCondition;
    }

    public BdpWfAuditPerson setAuditorCondition(String auditorCondition) {
        this.auditorCondition = auditorCondition;
        return this;
    }

    public Integer getAuditorKind() {
        return auditorKind;
    }

    public BdpWfAuditPerson setAuditorKind(Integer auditorKind) {
        this.auditorKind = auditorKind;
        return this;
    }

    public String getAuditorValue() {
        return auditorValue;
    }

    public BdpWfAuditPerson setAuditorValue(String auditorValue) {
        this.auditorValue = auditorValue;
        return this;
    }

    public String getInnerCompanyId() {
        return innerCompanyId;
    }

    public BdpWfAuditPerson setInnerCompanyId(String innerCompanyId) {
        this.innerCompanyId = innerCompanyId;
        return this;
    }

    public String getInnerCreatorId() {
        return innerCreatorId;
    }

    public BdpWfAuditPerson setInnerCreatorId(String innerCreatorId) {
        this.innerCreatorId = innerCreatorId;
        return this;
    }

    public LocalDateTime getInnerCreateTime() {
        return innerCreateTime;
    }

    public BdpWfAuditPerson setInnerCreateTime(LocalDateTime innerCreateTime) {
        this.innerCreateTime = innerCreateTime;
        return this;
    }

    public Integer getInnerDeleteFlag() {
        return innerDeleteFlag;
    }

    public BdpWfAuditPerson setInnerDeleteFlag(Integer innerDeleteFlag) {
        this.innerDeleteFlag = innerDeleteFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.auditPersonId;
    }

    @Override
    public String toString() {
        return "BdpWfAuditPerson{" +
        "auditPersonId=" + auditPersonId +
        ", nodeId=" + nodeId +
        ", auditorCondition=" + auditorCondition +
        ", auditorKind=" + auditorKind +
        ", auditorValue=" + auditorValue +
        ", innerCompanyId=" + innerCompanyId +
        ", innerCreatorId=" + innerCreatorId +
        ", innerCreateTime=" + innerCreateTime +
        ", innerDeleteFlag=" + innerDeleteFlag +
        "}";
    }
}
